package com.zxw.user.api;

import com.zxw.common.core.base.res.BasePageRes;
import com.zxw.common.core.base.res.BaseRes;
import com.zxw.user.domain.dto.LoginUserDTO;
import com.zxw.user.domain.dto.UserDTO;
import com.zxw.user.domain.entity.Button;
import com.zxw.user.domain.entity.User;
import com.zxw.user.domain.vo.UserPageVO;
import org.springframework.web.bind.annotation.*;

import java.util.List;

public interface ButtonAPI {

    @GetMapping("/menu-button")
    BaseRes<List<Button>> getMenuButton(Button button);

    @PostMapping("/get-button/{id}")
    BaseRes<Button> getButton(@PathVariable("id") Long id);

    @PostMapping("/add-button")
    BaseRes<Long> addButton(@RequestBody Button button);

    @PutMapping("/update-button")
    BaseRes<Button> updateButton(@RequestBody Button button);

    @DeleteMapping("/delete-button/{ids}")
    BaseRes deleteButton(@PathVariable("ids") String ids);


}
